package com.caoyuqi.picture.service;

import com.caoyuqi.picture.mapper.TitleMapper;
import com.caoyuqi.picture.model.Title;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TitleService {
    @Autowired
    TitleMapper titleMapper;
    public List<Title> queryAllTtitle()
    {
        List<Title> titles = titleMapper.queryAllTitle();
        return titles;
    }
    public String queryTrueById(Integer i)
    {
        return titleMapper.queryTrueById(i);
    }
}
